package com.sds.replicator.helpers;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class StringUtils {
    public static String wrapRegex(String string) {
        return string.replaceAll("\\\\", "\\\\");
    }

    public static String decodeURL(String string) {
        try {
            return URLDecoder.decode(string, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            return string;
        }
    }
}
